package study.week05.gateway.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Properties;


@ConfigurationProperties(prefix = "gateway")
@Data
public  class DemoProperties {

    @Value("${gateway.serverList}")
    String serverList;
    @Value("${gateway.filters}")
    String filters;
    @Value("${gateway.route}")
    String route;
    @Value("${gateway.port}")
    int port;
    @Value("${gateway.queueSize}")
    int queueSize;
}